Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
How do I convert (1,2,3) to a JSON object like [1,2,3] in javascript using jsonurl?

I'm trying to use https://github.com/jsonurl/jsonurl-js to achieve this. I've tried the following code but I keep getting the result of 23.

I would like to store all values of test in testJSON and access each individual item by its index.

const test = (1, 2, 3, 23);
const testJSON = JsonURL.parse(test);
console.log(testJSON[2])
<script src="https://cdn.jsdelivr.net/npm/@jsonurl/jsonurl@1.1.5" integrity="sha512-PgDMK2pu/5iHU+sUvfCWIKugVg2NLSN1jmQJyJKbQw1MZAMvrU7XX3fPv4FJXgGBxTCsDnjhMmlZK5pzgPndTQ==" crossorigin="anonymous"></script>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!